<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <script type="text/javascript" >
        let user={
            id:111,
            name:'33',
            age:22,
            show(){
                console.log("hello")
            }
        };
        for(var cc in user ){
            console.log(cc);
            console.log(user[cc]);
        }
    </script>
</body>
</html>